﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using DevComponents.AdvTree;

namespace  AppCommon.Controls
{
    public partial class UserControlBase : UserControl
    {
        public Node CurrentNode { get; set; }
        public UserControlBase()
        {
            InitializeComponent();
        }
        public virtual void Close()
        {
            CurrentNode = null;
        }
        protected new bool DesignMode
        {
            get
            {
                if (base.DesignMode)
                    return base.DesignMode;
                else
                    return (LicenseManager.UsageMode == LicenseUsageMode.Designtime);
            }
        }

    }
    public class LabelLinkX : LabelX
    {
        public LabelLinkX()
            : base()
        {
            Cursor = Cursors.Hand;
            ForeColor = Color.Blue;
            Font = new Font(new FontFamily("Arial"),10f, FontStyle.Underline);
        }
        protected override void OnEnter(EventArgs e)
        {
            base.OnEnter(e);
        }
        protected override void OnLeave(EventArgs e)
        {
            base.OnLeave(e);
        }
    }
}
